package ldh.im.fxbase.exception;

import ldh.rpc.exception.ErrorCode;

public enum ImErrorCode implements ErrorCode {
    SystemError(110, "系统错误"),
    IdentificationError(111, "终端标识符错误"),
    Disconnection(112, "连接中断"),
    File_existed(113, "文件已经下载"),
    File_Error(150, "%s"),
    Collect_existed(200, "此消息已经收藏"),

    ;

    private int code;
    private String message;

    private ImErrorCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public int getErrorCode() {
        return code;
    }

    @Override
    public String getErrorMessage() {
        return message;
    }
}
